<div class="post row-fluid">
	<div class="vote span1">
		<!-- VOTE WIDGET -->
		<a class="direction" href="/vote/<?php echo $post['post_id']; ?>/1"
		><i class="icon-chevron-up"></i></a>
		<div class="well">
		<span class="count"><span class="number"><?php echo $post['votes']; ?></span>Votes</span>
		<?php if($post['post_type'] == 'question' && $summarize): ?>
		<span class="answers"><span class="number"><?php echo $post['answers']; ?></span>Answers</span>
		<?php endif; ?>
		</div>
		<a class="direction" href="/vote/<?php echo $post['post_id']; ?>/-1"
		><i class="icon-chevron-down"></i></a>
	</div>
	<div class="content span11">
		<?php if($summarize): ?>
		
		<!-- SUMMARY TITLE -->
		<h2 class="title"><a href="/question/<?php echo $post['post_slug']; ?>">
		<?php echo $post['post_title']; ?></a></h2>
		
		<!-- SUMMARY DETAIL -->
		<p class="detail"><?php echo front('type', (string) $post['post_detail'])->summarize(50); ?> &hellip;</p>
		<?php else: ?>
		
		<!-- EDIT LINK -->
		<?php if($post['user_id'] == front()->registry()->get('session', 'user')->getUserId()
		|| front()->registry()->get('session', 'user')->getUserActive() == 2): ?>
		<span class="edit">
			<a href="/rephrase/<?php echo $post['post_id']; ?>">Edit</a> | 
			<a href="/report/<?php echo $post['post_id']; ?>">Remove</a>
		</span>
		<?php endif; ?>
		
		<!-- FULL DETAIL -->
		<div class="detail"><?php echo $post['post_detail']; ?></div>
		<?php endif; ?>	
		
		<!-- META QUESTION -->
		<?php if($post['post_type'] == 'question'): ?>
		<span class="meta">asked <?php echo front()->since($post['post_updated']); ?> 
		by <img width="20" src="<?php echo $post['user_picture']; ?>" />
		<a href="http://facebook.com/<?php echo $post['user_facebook']; ?>">
		<?php echo $post['user_name']; ?></a>
		
		<!-- REPORT QUESTION -->
		<a title="Report Post" class="report" href="/report/<?php echo $post['post_id']; ?>"
		><i class="icon icon-warning-sign"></i></a></span>
		<?php else: ?>
		
		<!-- META ANSWER -->
		<span class="meta">answered <?php echo front()->since($post['post_updated']); ?> 
		by <img width="20" src="<?php echo $post['user_picture']; ?>" />
		<a href="http://facebook.com/<?php echo $post['user_facebook']; ?>">
		<?php echo $post['user_name']; ?></a>
		
		<!-- REPORT ANSWER -->
		<a title="Report Post" class="report" href="/report/<?php echo $post['post_id']; ?>"
		><i class="icon icon-warning-sign"></i></a></span>
		<?php endif; ?>
		
		<!-- TAGS -->
		<?php if(isset($post['tags'])): ?>
		<?php foreach($post['tags'] as $tag): ?>
		<a class="tag btn btn-warning" href="/tag/<?php echo $tag['category_slug']; ?>"
		><?php echo $tag['category_title']; ?></a>
		<?php endforeach; ?>
		<?php endif; ?>
		
		<!-- COMMENTS -->
		<?php if($post['comments'] instanceof Eden_Collection): ?>
		<?php foreach($post['comments'] as $comment): ?>
		<div class="comment">
			
			<!-- EDIT LINK -->
			<?php if($comment['user_id'] == front()->registry()->get('session', 'user')->getUserId()
			|| front()->registry()->get('session', 'user')->getUserActive() == 2): ?>
			<span class="edit">
				<a href="/report/<?php echo $comment['post_id']; ?>">Remove</a>
			</span>
			<?php endif; ?>
			
			<!-- COMMENT DETAIL -->
			<div class="detail"><?php echo strip_tags($comment['post_detail']); ?></div>
			
			<!-- COMMENT META -->
			<span class="meta">&mdash; commented <?php echo front()->since($comment['post_created']); ?> 
			by <img width="20" src="<?php echo $comment['user_picture']; ?>" />
			<a href="http://facebook.com/<?php echo $comment['user_facebook']; ?>">
			<?php echo $comment['user_name']; ?></a>
			
			<!-- REPORT COMMENT -->
			<a title="Report Post" class="report" href="/report/<?php echo $comment['post_id']; ?>"
			><i class="icon icon-warning-sign"></i></a></span>
		</div>
		<?php endforeach; ?>
		
		<!-- COMMENT FORM -->
		<div class="comment">
			<form method="post" class="well">
			<h3>Your Comment</h3>
			<?php echo jquery()->field()->textarea('detail'); ?>
			<br />
			<button type="submit" name="type" value="comment" 
			class="btn btn-primary btn-large">Comment</button>
			<input type="hidden" name="post" value="<?php echo $post['post_id']; ?>" />
			</form>
		</div>
		<?php endif; ?>
	</div>
</div>